﻿using System.ComponentModel;

namespace TestUp.Models.ShortEntities
{
    public class ShortCourse
    {
        public int CourseId { get; set; }
        public string CourseName { get; set; }

        public Course ConvertToEntity()
        {
            var course = EntitiesConverter.ToEntity<Course, ShortCourse>(this);

            return course;
        }
    }
}